package com.huaxin.hxcloud.dialog;

import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.huaxin.hxcloud.R;
import com.huaxindata.common.base.HxBaseDialogFragment;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author songxf
 * @date 2018/6/20
 * @Desc 未初始化禁止远控
 * Copyright HUAXIN DATA. All rights reserved.
 */
public class HxSPTNotInitTargetDialog extends HxBaseDialogFragment {
    @BindView(R.id.tv_title)
    TextView mTvTitle;
    @BindView(R.id.cancel_btn)
    Button   mCancelBtn;

    @RequiresApi(api = Build.VERSION_CODES.HONEYCOMB)
    public static HxSPTNotInitTargetDialog newInstance() {

        Bundle args = new Bundle();

        HxSPTNotInitTargetDialog fragment = new HxSPTNotInitTargetDialog();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public int setRootViewId() {
        return R.layout.dialog_not_init_target;
    }

    @Override
    public void initData() {

    }

    @Override
    public int showPosition() {
        return Gravity.CENTER;
    }


    @RequiresApi(api = Build.VERSION_CODES.HONEYCOMB)
    @OnClick({R.id.cancel_btn})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.cancel_btn:
                dismiss();
                break;
        }
    }
}
